<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>Database Error</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <style type="text/css">
            body { background-color: #fff; color: #000; font-family: Trebuchet MS,Georgia,"Times New Roman",serif; font-size: 0.9em;}
            h1 { font-size: 1.5em; height: 35px; vertical-align: top; font-weight: bold; text-transform:uppercase;}
            .container { width: 700px; }
            .message   { background-color: #ffebe8; border: 1px solid #c00; padding: 10px;}
            a:link { color: #ff0000; }
            a:visited  { color: #4e4e4e; }
        </style>
    </head>
    <body>
        <table cellpadding="3" cellspacing="5" class="container">
            <tr>
                <td><h1>Database error</h1></td>
            </tr>
            <tr>
                <td>The database has encountered a problem.</td>
            </tr>
            <tr>
                <td><hr /></td>
            </tr>
            <tr>
                <td>
                    Please try the following:
                    <ul>
                        <li>Load the page again by clicking the <a href="#" onclick="window.location = window.location;">Refresh</a> button in your web browser.</li>
                        <li>Open the home page, then try to open another page.</li>
                        <li>Click the <a href="javascript:history.back(1)">Back</a> button to try another link.</li>
                    </ul>
                </td>
            </tr>
            <tr>
                <td>The technical staff have been notified of the error, though you may contact us if the problem persists.</td>
            </tr>
            <tr>
                <td>&nbsp;<br />We apologise for any inconvenience.</td>
            </tr>
            <?php if($v_message != '') { ?>
            <tr>
                <td>
                    <div class="message">
                        <div><b>Invalid SQL:</b></div>
                        <div><?= $v_message ?>.</div>
                    </div>
                </td>
            </tr>
            <?php } ?>
        </table>
    </body>
</html>